Skip to content

feat(print): ship FormTxt templates, wait 13 seconds, and name accounts on template lines (0.13.0) - #12

Merged
nodemode-ai merged 12 commits into
mainfrom
feat/formtxt-template-0.13.0
Nov 28, 2026
Merged

nodemode-ai merged 12 commits into
mainfrom
feat/formtxt-template-0.13.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

feat(print): ship FormTxt templates, wait 13 seconds, and name accounts on template lines (0.13.0)

Summary

  • formledger formtxt-template writes FormLedger's own invoice template as a FormTxt file, and formledger formtxt-template statement the statement one. Once the file is opened in FormTxt, FormLedger finds the template there by its name, with no environment value to set. A set FORMLEDGER_FORMTXT_TEMPLATE_INVOICE still wins.
  • FormLedger does not create the document in FormTxt itself: FormTxt gives an outside program no permitted route for that, and FormLedger does not go around FormTxt's consent.
  • The wait for FormTxt is 13 seconds, down from 100.
  • A document started from a template shows each free line's account, for example "4100 Sales", at the end of its description. The space is there from first paint.
  • Opening a document from a template no longer moves the bottom buttons. Cause: the main button's label changed from "Confirm" to "Post" and the button changed width.
  • Dashboard figures, chart readouts and value axes use the currency's decimal places. Cause of the fault: a fixed division by 100.

Commits

12 commits, oldest first, release commit last:

  • 4 feat (invoice template and command, lookup by name, statement template, account hint)
  • 3 fix (13 second wait, chart minor units, dashboards by currency)
  • 4 docs (print guide twice, two log commits)
  • 1 chore (release)

Version

v0.13.0 (release commit is last). Bumped: internal/app/version.go, Makefile line 1, web/package.json, two fields in web/package-lock.json, src-tauri/tauri.conf.json, src-tauri/Cargo.toml, the formledger-desktop entry in src-tauri/Cargo.lock, the "Current build version" line in the four HASHOUT_LOG.md files, the README badge, and a new CHANGELOG.md section.

Checks

  • go build ./... passed at each of the 12 commits; go vet ./..., gofmt and npm run check in web/ passed at the head.
  • The exit run in Chrome at CPU 4x with a slowed network, on the branch before the release commit: a twenty-line invoice typed and posted, the three reports opened, 0 layout shift on all 7 steps with and without input.
  • Same build and throttling: a hard reload of a document started from the service-hours template read 0 and showed "4100 Sales", "4100 Sales" and "4900 Other income"; a hard reload of dashboards read 0. formtxt-template wrote a file holding mimetype and document.json.
  • By the slices: with no template value set, an invoice and a statement drawn by FormTxt 0.38.0 from the shipped templates after their files were opened in its window; the plain page with a note when the template is missing (0.32 s), when the question goes unanswered (13.13 s) and when FormTxt is stopped (0.35 s). Three hard reloads of dashboards with 24 posted invoices read 0, so the 0.0001 shift reported for v0.12.0 did not reproduce.

Not run: the dashboards change with a currency that has no minor unit (reasoned from code); "Allow once" in FormTxt; quotes, orders and buying documents through FormTxt (no template shipped); the desktop app was not compiled; nothing ran on macOS or Windows.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

FormLedger now gives up on FormTxt after 13 seconds instead of 100, as the owner chose, and the message and docs say so.
The compact value axis divided by 100 for every currency; it now reads the minor-unit count from engine/format, so a zero-decimal currency reads at full size once the dashboard names it.
FormLedger now carries its own FormTxt invoice template as an embedded .ftxt document, and formledger formtxt-template writes it for the person to open in FormTxt.
A free line started from a template shows its account, such as 4100 Sales, at the end of the description cell and in its tooltip, written once when the lines arrive; the Post button keeps the Confirm width so the label swap no longer moves the action row.
With no template id set, FormLedger looks in FormTxt's document list for the one named FormLedger invoice template and draws with it, and says how to add it when it is missing.
The FormTxt set-up now reads what is true: write the template with formtxt-template, open it in FormTxt, allow outside agents, and it records the 2026-11-27 run.
Records why FormLedger ships the template as a file the person opens in FormTxt and finds it by name, and the run that proved it.
FormLedger now also ships a FormTxt customer statement template, written with formtxt-template statement and found by name like the invoice one.
PRINT.md now describes the statement template and records that FormTxt drew a statement from it on 2026-11-27.
Records why the hint follows the description, why the Post label keeps its width, and that the chart axis waits for the dashboard to name the currency.
…aces

The number cards, chart readouts and value axes read the places from the company's currency, so a currency with no minor unit is no longer 100 times too small. Reasoned from code; not seen with such a currency.
Every version site moves to v0.13.0 and the changelog gets its section.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 28, 2026 03:10
@nodemode-ai
nodemode-ai merged commit a8c0d34 into main Nov 28, 2026
0 of 2 checks passed
@nodemode-ai
nodemode-ai deleted the feat/formtxt-template-0.13.0 branch November 28, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant